<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>天气之子</title>

    <link rel="stylesheet" href="./CSS/index.css">

    <script src="./js/search.js"></script>
    <script src="./js/serverSwitch.js"></script>
    <script src="./js/weather.js"></script>
</head>
<body>
    <h1>欢迎查询天气<img src="./img/weather.png" width="50px"></h1>
    <div id="search">
        <form target="_blank" method="get" name="search1" action="./weather.html" onsubmit="return check()">
            <input class="search-input" type="text" name="cityName" placeholder="请输入你要查询的城市" autocomplete="off">
            <!-- <input class="search-btn" type="submit" value="查询" onclick="queryWeather()"> -->
            <button class="search-btn">查询</button>
        </form>
    </div>
    <div id="weather">
        <a href="https://weather.cma.cn/" target="_blank" title="https://weather.cma.cn/">前往中国气象局</a>
        <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <a href="http://www.weather.com.cn/" target="_blank" title="http://www.weather.com.cn/">前往天气网</a>
    </div>
</body>
</html>